import request from '@/utils/request'

// 查询城市战队字典列表
export function listCity_code(query) {
  return request({
    url: '/admin/city_code/list',
    method: 'get',
    params: query
  })
}

// 查询城市战队字典详细
export function getCity_code(id) {
  return request({
    url: '/admin/city_code/' + id,
    method: 'get'
  })
}

// 新增城市战队字典
export function addCity_code(data) {
  return request({
    url: '/admin/city_code',
    method: 'post',
    data: data
  })
}

// 修改城市战队字典
export function updateCity_code(data) {
  return request({
    url: '/admin/city_code',
    method: 'put',
    data: data
  })
}

// 删除城市战队字典
export function delCity_code(id) {
  return request({
    url: '/admin/city_code/' + id,
    method: 'delete'
  })
}

// 导出城市战队字典
export function exportCity_code(query) {
  return request({
    url: '/admin/city_code/export',
    method: 'get',
    params: query
  })
}